import axios from '@/utils/request';

import config from '@/common/config'

let base = config.getMkBasePath();

/**
 * 门店图片列表
 *1    默认只开放普通查询，所有查询，只要上传	 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 *2 查询、新增、修改的参数格式  params={id:'id 主键',url:'本地路径',remoteUrl:'第三方返回的路径'}
 **/
 
//普通查询 条件之间and关系  
export const listShopLocationImg = params => { return axios.get(`${base}/mk/mall/shop/shopLocationImg/list`, { params: params }); };

//模糊查询门店图片列表 条件之间or关系  
//export const listShopLocationImgKey = params => { return axios.get(`${base}/mk/mall/shop/shopLocationImg/listKey`, { params: params }); };

//删除一条门店图片列表 params={id:'id 主键'}
export const delShopLocationImg = params => { return axios.post(`${base}/mk/mall/shop/shopLocationImg/del`,params); };

//批量删除门店图片列表  params=[{id:'id 主键'}]
export const batchDelShopLocationImg = params => { return axios.post(`${base}/mk/mall/shop/shopLocationImg/batchDel`, params); };

//修改一条门店图片列表记录
export const editShopLocationImg = params => { return axios.post(`${base}/mk/mall/shop/shopLocationImg/edit`, params); };

//新增一条门店图片列表
export const addShopLocationImg = params => { return axios.post(`${base}/mk/mall/shop/shopLocationImg/add`, params); };